// 8088   用户
// 8083   商品
var doMain = 'http://47.52.62.255:8088';
var doMain2 = 'http://47.52.62.255:8085';
var doMain3 = 'http://47.52.62.255:8083';
// var doMain4 = 'http://47.52.62.255:8083';
var y = 'http://192.168.1.114:8083';
function isLogin(){
	var userId=localStorage.__USERMALLID__||'';
	var userIdVal = false;
	if(userId!=''){
	    userIdVal = true;
	}
	return userIdVal;
}
isLogin();
function loginTxtShow(){
	if(isLogin()==true){
		$('.logout-box').show();
		$('.login-box').hide();

		$('#laytype-2').show();
		$('#laytype-1').hide();

		// console.log(JSON.parse(localStorage.__USERINFO__).phone);
		$('.log.user-tel').html(JSON.parse(localStorage.__USERINFO__).phone);
		// $('.shopcart-inner .items_carts').html('￥'+localStorage.__TOTALPRICE__);
	}
	else{
		$('.logout-box').hide();
		$('.login-box').show();

		$('#laytype-2').hide();
		$('#laytype-1').show();
	}
}
loginTxtShow();
function logOutEls(){
	localStorage.removeItem("__USERMALLID__");
	localStorage.removeItem("__USERPRICE_");
	localStorage.removeItem("__USERINFO__");
	localStorage.removeItem("__TOTALPRICE__");
	// $('.shopcart-inner .items_carts').html('￥0');
	loginTxtShow();
}
function getQueryString(name) {
	var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
	var r = (window.location.hash || window.location.search).substr(1).match(reg);
	if (r != null) return unescape(r[2]); return null;
}
